#!/usr/bin/env python
# -*- encoding: utf-8 -*-


class Q602_L2_SUBPC2005(object):
    """
    换辊实绩数据表：BGROQ602.Q602_L2_SUBPC2005

    """
    #     电文ID
    #     BIGINT
    #     19
    RECEIVEDMESSAGEID = None
    #     电文接收时间
    #     VARCHAR
    #     14
    GETTIME = None
    #     上下辊区分
    #     VARCHAR
    #     1
    ROLL_FLAG = None
    #    轧辊类型
    #   VARCHAR
    #   1
    ROLL_TYPE = None
    #     原因代码
    #     VARCHAR
    #     3
    REASON_CODE = None
    #     换辊下机日期时间
    #     VARCHAR
    #     14
    DISMOUNT_TIME = None
    #     该辊上机日期时间
    #     VARCHAR
    #     14
    MOUNT_TIME = None
    #     班次
    #     VARCHAR
    #     1
    SHIFT = None
    #     班别
    #     VARCHAR
    #     1
    TURN = None
    #     轧辊辊号
    #     VARCHAR
    #     8
    ROLL_NO = None
    #     备用
    #     VARCHAR
    #     2
    RESERVE1 = None
    #     轧辊直径
    #     INTEGER
    #     10
    ROLL_DIA = None
    #     轧辊粗糙度
    #     INTEGER
    #     10
    ROLL_ROUGHNESS = None
    #     备用
    #     VARCHAR
    #     2
    RESERVE2 = None
    #     轧辊轧制长度
    #     INTEGER
    #     10
    ROLL_LENGTH = None
    #     轧辊轧制吨位
    #     INTEGER
    #     10
    ROLL_TONS = None
    #     轧辊轧制时间
    #     INTEGER
    #     10
    ROLL_PROD_TIME = None
    #     轧制卷钢卷数
    #     INTEGER
    #     10
    ROLL_COILS = None
    #     轧辊所轧取向卷数
    #     INTEGER
    #     10
    ROLL_HCOILS = None
    #     轧辊凸度
    #     INTEGER
    #     10
    ROLL_CROWN = None
    #     第一锥度区长度
    #     INTEGER
    #     10
    LENGTH_L1 = None
    #     第二锥度区长度
    #     INTEGER
    #     10
    LENGTH_L2 = None
    #     第一锥度区高度
    #     INTEGER
    #     10
    HEIGHT_L1 = None
    #     第二锥度区高度
    #     INTEGER
    #     10
    HEIGHT_L2 = None
    #     轧辊位置
    #     VARCHAR
    #     2
    ROLL_POS = None

    def __init__(self, p_dict: dict = None):
        self.RECEIVEDMESSAGEID = p_dict['RECEIVEDMESSAGEID']
        self.GETTIME = p_dict['GETTIME']
        self.ROLL_FLAG = p_dict['ROLL_FLAG']
        self.ROLL_TYPE = p_dict['ROLL_TYPE']
        self.REASON_CODE = p_dict['REASON_CODE']
        self.DISMOUNT_TIME = p_dict['DISMOUNT_TIME']
        self.MOUNT_TIME = p_dict['MOUNT_TIME']
        self.SHIFT = p_dict['SHIFT']
        self.TURN = p_dict['TURN']
        self.ROLL_NO = p_dict['ROLL_NO']
        self.RESERVE1 = p_dict['RESERVE1']
        self.ROLL_DIA = p_dict['ROLL_DIA']
        self.ROLL_ROUGHNESS = p_dict['ROLL_ROUGHNESS']
        self.RESERVE2 = p_dict['RESERVE2']
        self.ROLL_LENGTH = p_dict['ROLL_LENGTH']
        self.ROLL_TONS = p_dict['ROLL_TONS']
        self.ROLL_PROD_TIME = p_dict['ROLL_PROD_TIME']
        self.ROLL_COILS = p_dict['ROLL_COILS']
        self.ROLL_HCOILS = p_dict['ROLL_HCOILS']
        self.ROLL_CROWN = p_dict['ROLL_CROWN']
        self.LENGTH_L1 = p_dict['LENGTH_L1']
        self.LENGTH_L2 = p_dict['LENGTH_L2']
        self.HEIGHT_L1 = p_dict['HEIGHT_L1']
        self.HEIGHT_L2 = p_dict['HEIGHT_L2']
        self.ROLL_POS = p_dict['ROLL_POS']
        pass

    def serialize(self) -> (dict):
        return self.__dict__
